home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / zeros.tex < prev    next >
LaTeX Document  |  1994-04-27  |  1.2 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: zeros.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 7a 65 72 6f 73 20 2d |\section|{zeros -|
|00000010| 2d 2d 20 6d 61 74 72 69 | 78 20 6f 66 20 7a 65 72 |-- matri|x of zer|
|00000020| 6f 73 7d 0d 5c 6c 61 62 | 65 6c 7b 66 6e 3a 7a 65 |os}.\lab|el{fn:ze|
|00000030| 72 6f 73 7d 0d 5c 69 6e | 64 65 78 7b 7a 65 72 6f |ros}.\in|dex{zero|
|00000040| 73 28 29 7d 0d 5c 69 6e | 64 65 78 7b 6d 61 74 72 |s()}.\in|dex{matr|
|00000050| 69 78 21 6f 66 20 7a 65 | 72 6f 73 7d 0d 5c 62 65 |ix!of ze|ros}.\be|
|00000060| 67 69 6e 7b 72 61 69 6c | 7d 0d 7a 65 72 6f 73 20 |gin{rail|}.zeros |
|00000070| 3a 20 27 7a 65 72 6f 73 | 27 20 27 28 27 20 28 28 |: 'zeros|' '(' ((|
|00000080| 20 53 63 61 6c 61 72 20 | 27 2c 27 20 53 63 61 6c | Scalar |',' Scal|
|00000090| 61 72 20 29 20 7c 20 28 | 20 4d 61 74 72 69 78 20 |ar ) | (| Matrix |
|000000a0| 29 29 20 27 29 27 20 3b | 0d 5c 65 6e 64 7b 72 61 |)) ')' ;|.\end{ra|
|000000b0| 69 6c 7d 0d 0d 5c 76 65 | 72 62 2b 7a 65 72 6f 73 |il}..\ve|rb+zeros|
|000000c0| 2b 20 72 65 74 75 72 6e | 73 20 61 20 6d 61 74 72 |+ return|s a matr|
|000000d0| 69 78 20 77 69 74 68 20 | 61 6c 6c 20 65 6c 65 6d |ix with |all elem|
|000000e0| 65 6e 74 73 20 73 65 74 | 20 74 6f 20 7a 65 72 6f |ents set| to zero|
|000000f0| 2e 20 49 66 20 74 68 65 | 0d 61 72 67 75 6d 65 6e |. If the|.argumen|
|00000100| 74 73 20 61 72 65 20 74 | 77 6f 20 73 63 61 6c 61 |ts are t|wo scala|
|00000110| 72 73 2c 20 74 68 65 6e | 20 74 68 65 20 66 69 72 |rs, then| the fir|
|00000120| 73 74 20 61 72 67 75 6d | 65 6e 74 20 73 70 65 63 |st argum|ent spec|
|00000130| 69 66 69 65 73 20 74 68 | 65 20 0d 6e 75 6d 62 65 |ifies th|e .numbe|
|00000140| 72 20 6f 66 20 72 6f 77 | 73 2c 20 61 6e 64 20 74 |r of row|s, and t|
|00000150| 68 65 20 73 65 63 6f 6e | 64 20 61 72 67 75 6d 65 |he secon|d argume|
|00000160| 6e 74 20 73 70 65 63 69 | 66 69 65 73 20 74 68 65 |nt speci|fies the|
|00000170| 20 6e 75 6d 62 65 72 0d | 6f 66 20 63 6f 6c 75 6d | number.|of colum|
|00000180| 6e 73 2e 20 49 66 20 74 | 68 65 20 61 72 67 75 6d |ns. If t|he argum|
|00000190| 65 6e 74 20 69 73 20 61 | 20 6d 61 74 72 69 78 2c |ent is a| matrix,|
|000001a0| 20 74 68 65 6e 20 5c 76 | 65 72 62 2b 7a 65 72 6f | then \v|erb+zero|
|000001b0| 73 2b 20 72 65 74 75 72 | 6e 73 0d 61 20 6d 61 74 |s+ retur|ns.a mat|
|000001c0| 72 69 78 20 77 69 74 68 | 20 74 68 65 20 6e 75 6d |rix with| the num|
|000001d0| 62 65 72 20 6f 72 20 72 | 6f 77 73 20 73 70 65 63 |ber or r|ows spec|
|000001e0| 69 66 69 65 64 20 62 79 | 20 74 68 65 20 66 69 72 |ified by| the fir|
|000001f0| 73 74 20 61 72 67 75 6d | 65 6e 74 2c 0d 61 6e 64 |st argum|ent,.and|
|00000200| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 6f 6c 75 6d | number |of colum|
|00000210| 6e 73 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |ns speci|fied by |
|00000220| 74 68 65 20 73 65 63 6f | 6e 64 20 61 72 67 75 6d |the seco|nd argum|
|00000230| 65 6e 74 2e 20 20 54 68 | 69 73 20 69 73 20 0d 74 |ent. Th|is is .t|
|00000240| 68 65 20 73 61 6d 65 20 | 66 6f 72 6d 20 61 73 20 |he same |form as |
|00000250| 74 68 65 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |the retu|rn value|
|00000260| 20 6f 66 20 5c 76 65 72 | 62 2b 73 69 7a 65 2b 2e | of \ver|b+size+.|
|00000270| 0d 0d 0d 5c 70 61 72 61 | 67 72 61 70 68 7b 45 78 |...\para|graph{Ex|
|00000280| 61 6d 70 6c 65 7d 0d 5c | 69 6e 64 65 78 7b 65 78 |ample}.\|index{ex|
|00000290| 61 6d 70 6c 65 20 6f 66 | 20 7a 65 72 6f 73 28 29 |ample of| zeros()|
|000002a0| 7d 0d 5c 69 6e 64 65 78 | 7b 7a 65 72 6f 73 28 29 |}.\index|{zeros()|
|000002b0| 21 65 78 61 6d 70 6c 65 | 7d 0d 5c 62 65 67 69 6e |!example|}.\begin|
|000002c0| 7b 76 65 72 62 61 74 69 | 6d 7d 0d 3e 20 7a 65 72 |{verbati|m}.> zer|
|000002d0| 6f 73 28 32 2c 33 29 0d | 20 20 20 20 20 20 20 20 |os(2,3).| |
|000002e0| 30 20 20 20 20 20 20 20 | 20 20 20 30 20 20 20 20 |0 | 0 |
|000002f0| 20 20 20 20 20 20 30 20 | 20 0d 20 20 20 20 20 20 | 0 | . |
|00000300| 20 20 30 20 20 20 20 20 | 20 20 20 20 20 30 20 20 | 0 | 0 |
|00000310| 20 20 20 20 20 20 20 20 | 30 20 20 0d 3e 20 7a 65 | |0 .> ze|
|00000320| 72 6f 73 28 5b 32 2c 34 | 5d 29 0d 20 20 20 20 20 |ros([2,4|]). |
|00000330| 20 20 20 30 20 20 20 20 | 20 20 20 20 20 20 30 20 | 0 | 0 |
|00000340| 20 20 20 20 20 20 20 20 | 20 30 20 20 20 20 20 20 | | 0 |
|00000350| 20 20 20 20 30 20 20 0d | 20 20 20 20 20 20 20 20 | 0 .| |
|00000360| 30 20 20 20 20 20 20 20 | 20 20 20 30 20 20 20 20 |0 | 0 |
|00000370| 20 20 20 20 20 20 30 20 | 20 20 20 20 20 20 20 20 | 0 | |
|00000380| 20 30 20 0d 3e 20 62 20 | 3d 20 72 61 6e 64 28 33 | 0 .> b |= rand(3|
|00000390| 2c 35 29 3b 0d 3e 20 73 | 69 7a 65 28 62 29 0d 20 |,5);.> s|ize(b). |
|000003a0| 20 20 20 20 20 20 20 33 | 20 20 20 20 20 20 20 20 | 3| |
|000003b0| 20 20 35 20 20 0d 3e 20 | 7a 65 72 6f 73 28 73 69 | 5 .> |zeros(si|
|000003c0| 7a 65 28 62 29 29 0d 20 | 20 20 20 20 20 20 20 30 |ze(b)). | 0|
|000003d0| 20 20 20 20 20 20 20 20 | 20 20 30 20 20 20 20 20 | | 0 |
|000003e0| 20 20 20 20 20 30 20 20 | 20 20 20 20 20 20 20 20 | 0 | |
|000003f0| 30 20 20 20 20 20 20 20 | 20 20 20 30 20 20 0d 20 |0 | 0 . |
|00000400| 20 20 20 20 20 20 20 30 | 20 20 20 20 20 20 20 20 | 0| |
|00000410| 20 20 30 20 20 20 20 20 | 20 20 20 20 20 30 20 20 | 0 | 0 |
|00000420| 20 20 20 20 20 20 20 20 | 30 20 20 20 20 20 20 20 | |0 |
|00000430| 20 20 20 30 20 20 0d 20 | 20 20 20 20 20 20 20 30 | 0 . | 0|
|00000440| 20 20 20 20 20 20 20 20 | 20 20 30 20 20 20 20 20 | | 0 |
|00000450| 20 20 20 20 20 30 20 20 | 20 20 20 20 20 20 20 20 | 0 | |
|00000460| 30 20 20 20 20 20 20 20 | 20 20 20 30 20 20 0d 5c |0 | 0 .\|
|00000470| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0d 0d 53 |end{verb|atim}..S|
|00000480| 65 65 20 61 6c 73 6f 3a | 20 50 61 67 65 7e 5c 70 |ee also:| Page~\p|
|00000490| 61 67 65 72 65 66 7b 66 | 6e 3a 6f 6e 65 73 7d 20 |ageref{f|n:ones} |
|000004a0| 5c 76 65 72 62 2b 6f 6e | 65 73 28 29 2b 2c 0d 50 |\verb+on|es()+,.P|
|000004b0| 61 67 65 7e 5c 70 61 67 | 65 72 65 66 7b 66 6e 3a |age~\pag|eref{fn:|
|000004c0| 73 69 7a 65 7d 20 5c 76 | 65 72 62 2b 73 69 7a 65 |size} \v|erb+size|
|000004d0| 28 29 2b 2e 0d 0d 5c 6e | 65 77 70 61 67 65 0d 0d |()+...\n|ewpage..|
|000004e0| 0d | |. | |
+--------+-------------------------+-------------------------+--------+--------+